package com.tc.utils.image.test;

import com.tc.utils.image.table.Table;

/**
 * Created by Frederic.Tang on 2018/8/23.
 */
public class TableImgGen {


//    int width = 800;
//    int height = 600;


    public static void main(String[] args) throws Exception {
        Table table = new Table(3);
        table.appendRow().setCellText(0, "你好").setCellText(1, "whata哈whata哈whata哈whata哈");
        table.appendRow().setCellText(1, "ss试试看").setCellText(2, "c猜测是");
        table.appendRow().setCellText(0, "你好").setCellText(1, "whata哈whata哈whata哈whata哈");
        table.appendRow().setCellText(1, "ss试试看").setCellText(2, "c猜测是");

        table.write( "d:/table.jpg");


    }

}
